/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: Dec 31, 2009
 * Time: 11:27:14 AM
 * To change this template use File | Settings | File Templates.
 */

import java.io.PrintStream;
import org.jdom.Element;

// Referenced classes of package dk.brics.dsd:
//            ValidationErrorHandler

class MyHandler
    implements ValidationErrorHandler
{

    MyHandler()
    {
        errors = 0;
    }

    public boolean error(Node node, Element element, String s, Element element1)
    {
        if(errors == 0)
            System.err.println("Document is invalid!");
        System.err.println("Error: " + s);
        errors++;
        return true;
    }

    int errors;
}

